/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** id查询文章详情 POST /scenic/message/getMessageInfoById */
export async function scenicMessageGetMessageInfoByIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicMessageGetMessageInfoByIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingxiaoxivo>('/scenic/message/getMessageInfoById', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 文章分组列表 POST /scenic/message/listMessageGroup */
export async function scenicMessageListMessageGroupUsingPost({
  body,
  options,
}: {
  body: API.MessageQueryBo67af1df3797545758e278d33b88dc9b0;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingListstring>('/scenic/message/listMessageGroup', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** maliang POST /scenic/message/maliang */
export async function scenicMessageMaliangUsingPost({
  body,
  options,
}: {
  body: API.Messageduixiang;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingstring>('/scenic/message/maliang', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询文章列表 POST /scenic/message/pageMessage */
export async function scenicMessagePageMessageUsingPost({
  body,
  options,
}: {
  body: API.MessageQueryBodab81445E2904397B21a44eca70e5d5e;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoxiaoxivo>(
    '/scenic/message/pageMessage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存文章【需要审批】 POST /scenic/message/saveMessage */
export async function scenicMessageSaveMessageUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/message/saveMessage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 保存文章【直接发布】 POST /scenic/message/saveMessagePush */
export async function scenicMessageSaveMessagePushUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/message/saveMessagePush', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改文章【直接发布】 POST /scenic/message/updateMessagePush */
export async function scenicMessageUpdateMessagePushUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/message/updateMessagePush', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateStatus GET /scenic/message/updateStatus */
export async function scenicMessageUpdateStatusUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicMessageUpdateStatusUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/message/updateStatus', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
